<template>
  <el-icon v-if="data.icon">
    <component :is="data.icon"></component>
  </el-icon>
  <span>{{ data.name }}</span>
</template>

<script setup>
const props = defineProps({
  data: {
    required: true,
    type: Object
  }
})
</script>

<style>

</style>